package br.com.seimos.flex.component
{
	import flash.utils.flash_proxy;
	
	import mx.collections.ArrayCollection;
	import mx.core.mx_internal;
	import mx.rpc.remoting.mxml.RemoteObject;
	
	use namespace flash_proxy;
	use namespace mx_internal;

	public dynamic class SRemoteObject extends RemoteObject
	{
		public function SRemoteObject(destination:String=null)
		{
			super(destination);
		}

		override flash_proxy function callProperty(name:*, ... args:Array):*
		{
			var newArgs:ArrayCollection=new ArrayCollection(args);
			return getOperation(getLocalName(name)).send.apply(null, args);
		}
	}
}